<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
        <?php $name=session('name'); ?>
          <head>
              <meta charset="utf-8">
            <title>丢吧管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="丢吧管理平台">
    <link rel="shortcut icon" href="/diuba/Public/assets_a/ico/favicon.html">
<link href="/diuba/Public/assets_a/css/bootstrap.css" rel="stylesheet">
<link href="/diuba/Public/assets_a/css/theme.css" rel="stylesheet">
<link href="/diuba/Public/assets_a/css/font-awesome.min.css" rel="stylesheet">
<link href="/diuba/Public/assets_a/css/alertify.css" rel="stylesheet">

<script type="text/javascript" src="/diuba/Public/assets_a/js/jquery.min.js"></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/raphael-min.js"></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/bootstrap.js"></script>
<script type="text/javascript" src='/diuba/Public/assets_a/js/sparkline.js'></script>
<script type="text/javascript" src='/diuba/Public/assets_a/js/morris.min.js'></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/jquery.masonry.min.js"></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/jquery.imagesloaded.min.js"></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/jquery.facybox.js"></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/jquery.alertify.min.js"></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/jquery.knob.js"></script>
<script type='text/javascript' src='/diuba/Public/assets_a/js/fullcalendar.min.js'></script>
<script type='text/javascript' src='/diuba/Public/assets_a/js/jquery.gritter.min.js'></script>
<script type="text/javascript" src="/diuba/Public/assets_a/js/realm.js"></script>
   
</head>
<body>

<div id="wrap">
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container-fluid">
                <div class="logo">
                    <img  src="/diuba/Public/assets_a/img/logo.png" alt="caffe">
                </div>
                <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a class="btn btn-navbar slide_menu_left visible-tablet">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>

                <div class="top-menu visible-desktop">

                    <ul class="pull-right">
                        <li><a href="/diuba/Admin/Index/logout"><i class="icon-off"></i> 注销</a></li>
                    </ul>
                </div>

            </div>
        </div>
    </div>
     <div class="container-fluid">
        <!-- Side menu -->
<div class="sidebar-nav nav-collapse collapse">
    <div class="user_side clearfix">
        <img src="/diuba/Public/assets_a/img/odinn.png" alt="">
        <!--<h5 align="">Admin</h5>-->
        <!--<a href="#"><i class="icon-cog"></i> Settings</a>-->
    </div>
    <div class="accordion" id="accordion2">


        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse_province"><i class="icon-reorder"></i> <span>数据统计与分析</span></a>
            </div>
            <div id="collapse_province" class="accordion-body collapse">
                <div class="accordion-inner">
                    <a class="accordion-toggle" href="<?php echo U('Index/count');?>"><i class="icon-table"></i> 数据统计</a>

                </div>
            </div>
        </div>

        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse_city"><i class="icon-reorder"></i> <span>用户信息</span></a>
            </div>
            <div id="collapse_city" class="accordion-body collapse">
                <div class="accordion-inner">
                    <a class="accordion-toggle" href="<?php echo U('User/userlist');?>"><i class="icon-table"></i> 用户列表</a>

                </div>
            </div>
        </div>

        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse2"><i class="icon-reorder"></i> <span>二维码信息管理</span></a>
            </div>
            <div id="collapse2" class="accordion-body collapse">
                <div class="accordion-inner">
                    <a class="accordion-toggle" href="<?php echo U('Goods/goodslist');?>"><i class="icon-table"></i> 二维码信息管理</a>
                </div>
            </div>
        </div>

        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse3"><i class="icon-reorder"></i> <span>失物信息</span></a>
            </div>
            <div id="collapse3" class="accordion-body collapse">
                <div class="accordion-inner">
                    <a class="accordion-toggle" href="<?php echo U('Lost/lostlist');?>"><i class="icon-table"></i> 失物信息列表</a>

                </div>
            </div>
        </div>

        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse4"><i class="icon-reorder"></i> <span>招领信息</span></a>
            </div>
            <div id="collapse4" class="accordion-body collapse">
                <div class="accordion-inner">
                    <a class="accordion-toggle" href="<?php echo U('Find/findlist');?>"><i class="icon-table"></i> 招领信息列表</a>
                </div>
            </div>
        </div>

        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse5"><i class="icon-reorder"></i> <span>首页轮播图片</span></a>
            </div>
            <div id="collapse5" class="accordion-body collapse">
                <div class="accordion-inner">
                    <a class="accordion-toggle" href="<?php echo U('Adpic/adpiclist');?>"><i class="icon-table"></i> 首页轮播图片管理</a>
                    <a class="accordion-toggle" href="<?php echo U('Adpic/regadpic');?>"><i class="icon-table"></i> 上传轮播图片</a>
                </div>
            </div>
        </div>

       
    </div>
</div>

<!-- /Side menu -->

        <!-- Side menu -->
        <!-- 引用header.html -->
        <!-- /Side menu -->


        <!-- Main window -->
        <div class="main_container" id="users_page">

            <div class="row-fluid">

                <h2 class="heading">
                    招领信息管理
                </h2>
            </div> <!-- /row-fluid -->


            <!--此处往下为代码改写部分-->
            <div class="row-fluid">
                <div class="widget widget-padding span12">
                    <div class="widget-header">
                        <i class="icon-group"></i>
                        <h5>招领信息列表</h5>
                        <div class="widget-buttons">
                            <!--<a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>-->
                            <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
                        </div>
                    </div>
                    <div class="widget-body table-responsive ">
                        <table id="users" class="table table-condensed table-striped table-bordered dataTable">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>图片</th>
                                <th>物品</th>
                                <th>失主姓名</th>
                                <th>丢失地点</th>
                                <th>发布时间</th>
                                <th>酬金</th>
                                <th>联系电话</th>
                                <th>置顶</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                                 <?php if(is_array($lost)): $i = 0; $__LIST__ = $lost;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                            <td><?php echo ($vo["id"]); ?></td>
                             <!-- <td><img src="../../../Public/Admin/photo/<?php echo ($vo["photo"]); ?>" width="80" alt="头像" title="<?php echo ($vo["aliasname"]); ?>"></td> -->
                             <td><img src="/diuba/Public/Uploads/lostphoto/<?php echo ($vo["picture"]); ?>" width="30" alt="头像" title="<?php echo ($vo["goodsname"]); ?>"></td>
                            
                            <td><?php echo ($vo["goods_name"]); ?></td>
                             <td><?php echo ($vo["lname"]); ?></td>
                             <td><?php echo ($vo["place"]); ?></td>
                             <td><?php echo ($vo["createtime"]); ?></td>
                             <td><?php echo ($vo["free"]); ?></td>
                             <td><?php echo ($vo["telephone"]); ?></td>

                            <!-- <td>
                                 <?php switch($vo["isfirst"]): case "1": ?>已禁用<?php break;?>
                                 <?php default: ?>正常状态<?php endswitch;?>
                             </td> -->
                                <td>
                                    <?php if($vo["isfirst"] == '0'): ?>未置顶
                                    <?php else: ?>已置顶<?php endif; ?>
                                </td>
    
                               
                    <td><a href="/diuba/Admin/Lost/editlost/id/<?php echo ($vo["id"]); ?>">修改</a> |
                        <?php switch($vo["isfirst"]): case "0": ?><a href="/diuba/Admin/Lost/isfirst/id/<?php echo ($vo["id"]); ?>/isfirst/<?php echo ($vo["isfirst"]); ?>">置顶</a> |<?php break;?>
                        <?php default: ?><a href="/diuba/Admin/Lost/isfirst/id/<?php echo ($vo["id"]); ?>/isfirst/<?php echo ($vo["isfirst"]); ?>">取消置顶</a> |<?php endswitch;?>
                        
                        <a href="/diuba/Admin/Lost/dellost/id/<?php echo ($vo["id"]); ?>" onclick="return confirm('你确定要删除吗？')"><i class="icon-trash"></i>删除</a>
                        </td>

                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                        </table>
                    </div> <!-- /widget-body -->
                </div> <!-- /widget -->
            </div> <!-- /row-fluid -->

        </div>
        <!-- /Main window -->

    </div><!--/.fluid-container-->
</div><!-- wrap ends-->
</body>
</html>